import request from '@/utils/request'

/**
 * 获取公司列表
 * @param params 
 * @returns 
 */
export const getCompanyList = (params: any) => request.get({ url: '/adminapi/system.organize.company/lists', params })

/**
 * 添加公司
 * @param data 
 * @returns 
 */
export const addCompany = (data: any) => request.post({ url: '/adminapi/system.organize.company/save', data })

/**
 * 编辑公司
 * @param data 
 * @returns 
 */
export const editCompany = (data: any) => request.put({ url: '/adminapi/system.organize.company/update', data })


/**
 * 删除公司
 * @param id 
 * @returns 
 */
export const deleteCompany = (id: number) => request.delete({ url: `/adminapi/system.organize.company/delete`, params: { id } })
/**
 * 获取组织列表
 * @returns 
 */
export const getOrganizationList = () => request.get({ url: '/adminapi/system.organize.company/getOrganizationList' })
